package com.tchy.cloud.entity;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "a_official_columns", schema = "", catalog = "")
@IdClass(AOfficialColumnsEntityPK.class)
public class AOfficialColumnsEntity {
    private Integer columnsId;
    private long articleId;

    @Id
    @Column(name = "columns_id")
    public Integer getColumnsId() {
        return columnsId;
    }

    public void setColumnsId(Integer columnsId) {
        this.columnsId = columnsId;
    }

    @Id
    @Column(name = "article_id")
    public long getArticleId() {
        return articleId;
    }

    public void setArticleId(long articleId) {
        this.articleId = articleId;
    }

}
